<template>
  <div id="app">
    <!-- HelloWorld就是一个组件，以标签的分式使用 -->
    <!-- aaa是父亲要传给儿子的数据 -->
    <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld aaa="TFBOYS"/>
    <List :arr="arr"></List>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue';
import List from "./components/List.vue";
export default {
  name: 'App',
  components: {
    HelloWorld,
    List
  },data(){
    return {
       arr: [
        {
          name: "王俊凯",
          city: "重庆",
          boos: "李飞",
        },
        {
          name: "王源",
          city: "重庆",
          boos: "李飞",
        },
        {
          name: "易烊千玺",
          city: "北京",
          boos: "李飞",
        },
      ],
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>